package com.cdtye.shuoh.service.device;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cdtye.shuoh.domain.device.entity.DeviceChannel;
import com.cdtye.shuoh.domain.device.entity.DeviceInfo;
import com.cdtye.shuoh.domain.device.vo.DeviceChannelVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DeviceChannelService {

    IPage<DeviceChannel> pageList(DeviceChannelVo vo);

    List<DeviceChannel> findListByDeviceIdentification(String deviceIdentification);

    DeviceChannel findByChannelId(String channelId);

    boolean saveOrUpdateDeviceChannel(DeviceChannel deviceChannel);

    DeviceChannel queryChannel(String deviceIdentification,String channelId);

    boolean updateChannel(DeviceChannel deviceChannel);

    void stopPlay(String deviceIdentification, String channelId);

    void startPlay(String deviceIdentification, String channelId, String streamId);

    void updateChannel(String deviceIdentification, DeviceChannel channel);

    void cleanChannelsForDevice(String deviceIdentification);

}
